Skip to content

feat(cli): add upgrade command - #7

Merged
Blankeos merged 2 commits into
Blankeos:mainfrom
yan-ad:feat/upgrade-command
Jul 31, 2026
Merged

feat(cli): add upgrade command#7
Blankeos merged 2 commits into
Blankeos:mainfrom
yan-ad:feat/upgrade-command

Conversation

@yan-ad

@yan-ad yan-ad commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add crabcode upgrade to compare the running version with the latest GitHub release.
  • Run the cargo-dist shell installer only when an update is available, surfacing network, version, and installer failures.
  • Enable cargo-dist shell installer artifacts so released binaries can self-upgrade.

Testing

  • cargo fmt
  • cargo test upgrade::tests
  • cargo test parses_upgrade_command
  • cargo run -- upgrade --help
  • git diff --check

Notes

  • The command targets GitHub releases for Blankeos/crabcode.
  • Windows reports that automatic upgrades are unavailable rather than attempting the POSIX shell installer.

@Blankeos

Blankeos commented Jul 29, 2026

Copy link
Copy Markdown
Owner

Super cool! Thanks for contributing! Will review asap

@Blankeos
Blankeos merged commit e962a1f into Blankeos:main Jul 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants